<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="keyword" content="">

    <title>碰撞报告 - 编制报告</title>

    <!-- Bootstrap core CSS -->
    <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/bootstrap-reset.css" rel="stylesheet">
    <!--external css-->
    <link href="__PUBLIC__/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <!-- Custom styles for this template -->
    <link href="__PUBLIC__/css/style.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style-responsive.css" rel="stylesheet" />
    <!-- new styles-->
      <link href="__PUBLIC__/css/xxxstyle.css" rel="stylesheet" />
      <link href="__PUBLIC__/css/dropify.min.css" rel="stylesheet" />

      <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
      <script src="__PUBLIC__/js/html5shiv.js"></script>
      <script src="__PUBLIC__/js/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>
  <section id="container" class="">
      <!--main content start-->
      <section id="main-content">
          <section class="wrapper site-min-height">
              <!-- page start-->
              <div class="row">
                  <div class="col-sm-12">
                    <div class="tab-content">
                              <div class="panel cReport-fill">
                                  <div class="panel-heading"><i class="icon-file"></i>碰撞报告{$o.id}
                                    <span class="pull-right">
                                      <button type="button" class="btn btn-default btn-xs" onclick="javascript:window.history.back();return false;"><i class="icon-reply"></i>返回</button>
                                    </span>                                                                 
                                  </div>
                                  <form action="__URL__/editcollision"  enctype="multipart/form-data" method="post" onsubmit="return checkForm(this)">
                                  <div class="panel-body">
                                      <div class="form-group">                                        
                                          <label class="col-sm-10 control-label">楼栋号</label>
                                          <div class="col-sm-40">
                                              <input type="text" class="form-control" name="ban" placeholder="" value="{$o.ban}"  required="required"/>
                                          </div>
                                          <label class="col-sm-10 control-label">楼层</label>
                                          <div class="col-sm-40">
                                              <input type="text" class="form-control" name="floor" placeholder="" value="{$o.floor}"  required="required"/>
                                          </div>
                                          
                                      </div>
                                      <div class="form-group">
                                          <label class="col-sm-10 control-label">轴线位置</label>
                                          <div class="col-sm-56">
                                              <div class="input-group">
                                                  <span class="input-group-addon">轴线</span>
                                                  <input type="text" class="form-control tealCenter" name="axis" value="{$o.axis}"  required="required">
                                                  <input type="hidden" value="{$o.id}" name="id" />
                                                  <span class="input-group-addon">交于</span>

                                                  <input type="text" class="form-control tealCenter" value="{$o.axis_turn}" name="axis_turn" value=""  required="required">
                                                  <span class="input-group-addon">轴线</span>
                                              </div>
                                          </div>
                                          <label class="col-sm-10 control-label">专业</label>
                                          <div class="col-sm-23">
                                              <select class="form-control" name="major">
                                                  <option value="1" <if condition="$o['major'] eq 1"> selected="selected"</if>>结构</option>
                                                  <option value="2" <if condition="$o['major'] eq 2"> selected="selected"</if>>建筑</option>
                                                  <option value="3" <if condition="$o['major'] eq 3"> selected="selected"</if>>暖通</option>
                                                  <option value="4" <if condition="$o['major'] eq 4"> selected="selected"</if>>给排水</option>
                                                  <option value="5" <if condition="$o['major'] eq 5"> selected="selected"</if>>桥架</option>
                                                  <option value="6" <if condition="$o['major'] eq 6"> selected="selected"</if>>弱电</option>
                                                  <option value="7" <if condition="$o['major'] eq 7"> selected="selected"</if>>强电</option>
                                              </select>
                                              <span class="caret"></span>
                                          </div>
                                      </div>
                                      <div class="form-group">
                                        <label class="col-sm-10 control-label">碰撞部位</label>
                                        <div class="col-sm-56">
                                              <div class="input-group">                                                 
                                                  <input type="text" class="form-control tealCenter" name="position"  value="{$o.position}" required="required">                                                 
                                                  <span class="input-group-addon">与</span>
                                                  <input type="text" class="form-control tealCenter" name="position_turn"  value="{$o.position_turn}" required="required">
                                                  <span class="input-group-addon">碰撞</span>
                                              </div>
                                        </div>
                                        <label class="col-sm-10 control-label">优化点</label>
                                        <div class="col-sm-23">
                                              <select class="form-control" name="optimization">
                                                  <option value="1" <if condition="$o['optimization'] eq 1"> selected="selected"</if>>设计改善</option>
                                                  <option value="2" <if condition="$o['optimization'] eq 2"> selected="selected"</if>>运维优化</option>
                                                  <option value="3" <if condition="$o['optimization'] eq 3"> selected="selected"</if>>降低验收风险</option>
                                                  <option value="4" <if condition="$o['optimization'] eq 4"> selected="selected"</if>>施工便利性</option>
                                                  <option value="5" <if condition="$o['optimization'] eq 5"> selected="selected"</if>>优化工期</option>
                                                  <option value="6" <if condition="$o['optimization'] eq 6"> selected="selected"</if>>优化成本</option>                                                
                                              </select>
                                              <span class="caret"></span>
                                        </div>
                                      </div>
                                      <div class="form-group">                                        
                                          <label class="col-sm-10 control-label">造价</label>
                                          <div class="col-sm-40">
                                              <div class="input-group">
                                                  <span class="input-group-addon">¥</span>
                                                  <input type="text" class="form-control" name="cost" value="{$o.cost}" placeholder="选填，+ 代表节约，- 代表增加">
                                                  <span class="input-group-addon">万元</span>
                                                  <!-- onkeyup="this.value=this.value.replace(/\D/g,'')"  onafterpaste="this.value=this.value.replace(/\D/g,'')" -->
                                              </div>
                                          </div>
                                          <label class="col-sm-10 control-label">工期</label>
                                          <div class="col-sm-40">
                                              <div class="input-group">
                                                  <input type="text" class="form-control" name="time_limit" value="{$o.time_limit}" placeholder="选填，+ 代表节约，- 代表增加">
                                                  <span class="input-group-addon">天</span>
                                              </div>
                                          </div>
                                      </div>									 
                                      <br>
                                      <div style="text-align:center"><span style="color:red">注:编辑报告时,如图片无需修改,可以不用上传</span></div>
                                      <br>
                                      <div class="form-group pb20">
                                          <label class="col-sm-10 control-label">BIM模型图</label>
                                          <!--new-->
                                          <div class="radios picPos">
                                              <label class="label_radio" for="PicSelect-1">
                                                  <input name="picsel" id="PicSelect-1" value="1" type="radio" checked />
                                                  <img src="__PUBLIC__/images/checkbox/SelectPic1.png" />
                                              </label>
                                              <label class="label_radio" for="PicSelect-2">
                                                  <input name="picsel" id="PicSelect-2" value="2" type="radio" />
                                                  <img src="__PUBLIC__/images/checkbox/SelectPic2.png" />
                                              </label>
                                          </div>
                                            <div class="selectTwoPic">
                                              <div class="col-sm-44 pzBIM">
                                                  <label>原图</label>
                                                  <input type="file" id="original" class="dropify-fr"  name="file1" data-height="390" did="{$o.imgtype}" data-max-file-size="2M" data-allowed-file-extensions="png jpg jpeg gif bmp pdf psd"/>
                                              </div>
                                              <div class="col-sm-44 pzBIM selBIM">
                                                  <label for="input-file-pzImg">更正后</label>
                                                  <input type="file" id="original_edit" class="dropify-fr"  name="file2" data-height="390" data-max-file-size="2M" data-allowed-file-extensions="png jpg jpeg gif bmp pdf psd"/>
                                              </div>
                                          	</div>
	                                          <div class="col-sm-90 pzBIM selectOnePic">
	                                              <label>对比图</label>
	                                              <input type="file" id="oimg" class="dropify-fr"  name="file3" data-height="390" did="{$o.imgtype}" data-max-file-size="2M" data-allowed-file-extensions="png jpg jpeg gif bmp pdf psd"/>
	                                          </div>
                                      </div>
                                    <!--   <div class="form-group paddingA">
                                          <div class="collisionReport-table cRtableM15">
                                              <div class="cRtable-row">
                                                  <div class="cRow-9 cRtable-bg">编制说明</div>
                                              </div>
                                              <div class="cRtable-row">
                                                  <div class="cRow-9 cRowY"></div>
                                              </div>
                                          </div>
                                      </div> -->
                                       <if condition="$da['status'] eq 2 || $da['status'] eq 6 && $reject neq ''">
                                        <foreach name="reject" item="v" key="k">
    	                                     <div class="form-group paddingA">
    	                                          <div class="collisionReport-table cRtableM15">
    	                                              <div class="cRtable-row">
    	                                                  <div class="cRow-9 cRtable-bg cRowQ">
                                                          <span class="pull-left">驳回意见</span>
                                                          <span class="pull-right">
                                                              <span><i class="glyphicon glyphicon-user"></i>{$v.name}</span>
                                                              <span><i class="glyphicon glyphicon-time"></i>{$v.add_time|date='Y-m-d H:i',###}</span>  
                                                          </span>
                                                        </div>
    	                                              </div>
    	                                              <div class="cRtable-row">
    	                                                  <div class="cRow-9 cRowY">{$v.yj|json_decode} </div>
    	                                              </div>
    	                                          </div>
    	                                     </div>
	                                     </foreach>
                                    </if>
                                      <div class="form-group">
                                          <label class="col-sm-10 control-label">问题描述</label>
                                          <div class="col-sm-90">
                                              <textarea class="form-control error" rows="4" name="problem" required="" value=""  required="required"/>{$o.problem|json_decode}</textarea>
                                          </div>
                                      </div>
                                      <div class="form-group">
                                          <label class="col-sm-10 control-label">建议方案</label>
                                          <div class="col-sm-90">
                                              <textarea class="form-control error" rows="4" name="proposal" required="" value=""  required="required"/>{$o.problem|json_decode}</textarea>
                                          </div>
                                      </div>
                                      <div class="cReport-btn pr5">
                                          <button class="btn btn-submit" type="submit" id="tj">编辑</button>
                                      </div>
                              </div>
                              </form>
                    </div> 
                  </div>
                  </div>
              </div>
              <!-- page end-->
          </section>
      </section>
      <!--main content end-->
  </section>

    <!-- js placed at the end of the document so the pages load faster -->
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/jquery-1.8.3.min.js"></script>
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>
    <script class="include" type="text/javascript" src="__PUBLIC__/js/jquery.dcjqaccordion.2.7.js"></script>
    <script src="__PUBLIC__/js/jquery.scrollTo.min.js"></script>
    <script src="__PUBLIC__/js/jquery.nicescroll.js" type="text/javascript"></script>
    <script src="__PUBLIC__/js/jquery.customSelect.min.js" ></script>
    
    <!--common script for all pages-->
    <script src="__PUBLIC__/js/common-scripts.js"></script>

    <!--new script for this page only-->
    <script src="__PUBLIC__/js/common-singlePage.js"></script> 
    <script src="__PUBLIC__/js/dropify.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
    <script>
      $(document).ready(function(){
          var drEvent = $('.dropify-fr').dropify({
              messages: {
                  default: '将图片拖放到此处或单击',
                  replace: '拖放或单击以替换',
                  remove:  '移除',
                  error:  '发生错误'
              },
              error: {
                  'fileExtension': '上传文件格式需为 {{ value }}。',
                  'fileSize': '上传文件大小最大为 {{ value }}。'
              }
          });
          drEvent.on('dropify.beforeClear', function(event, element){
              return confirm("你确定要删除 \"" + element.file.name + "\" 吗？");
          });
          drEvent.on('dropify.afterClear', function(event, element){
              alert('删除成功。');
          });
          drEvent.on('dropify.errors', function(event, element){
              console.log('Has Errors');
          });
      });
      
      function checkForm(o){  
		  $('#tj').attr('disabled',true);
		  $('#tj').text('正在提交中');
      }
      
  </script>
  </body>
</html>
